/* Constants definition */
var AJAX_URL = ROOT_URL+'ajax/';
var IMAGE_URL = ROOT_URL+'images/';
var CACHE_URL = 'http://'+DOMAIN_NAME+'/caches/';
var PHOTO_URL = 'http://'+DOMAIN_NAME+'/photos/advertisement/';
var PHOTO_PATH = DOCUMENT_ROOT_PATH+DOMAIN_NAME+'/frontend/controller/photos/';
var IMAGE_PATH = DOCUMENT_ROOT_PATH+DOMAIN_NAME+'/frontend/controller/images/';
var CACHE_PATH = DOCUMENT_ROOT_PATH+DOMAIN_NAME+'/frontend/cache/';

var THUMB_WIDTH = '80px';
var THUMB_HEIGHT = '60px';

var MAX_SUGGESTION = 15;

var UPLOAD_PHOTO_PREVIEW_WIDTH = '80px';
var UPLOAD_PHOTO_PREVIEW_HEIGHT = '60px';

var MAX_PHOTO_UPLOAD = '5';

/* Functions */
function trim(string) {
	return string.replace(/^\s+/, '').replace(/\s+$/, '');
};